package com.example.demo.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor//构造方法
public class Student implements Serializable {//该接口使其可以序列化,序列化存储到某个地方(redis)
    //学生简历信息
//    @NotNull(groups = Add.class)//代表分组为Update组时才不为空，其他组可为空，属于哪一组加在controller层@RequestBody @Validated(Category.Add.class) Student student
    private String account;

    private String name;
    private int age;
    private String sex;
    private String major;
    private String phone;
    private String email;
    private String introduction;
    private String reward;


}
